# yanguan.zsh-theme
# 历史行数 %h
# 当前用户 %B%n%b
# 路径 %{$fg[cyan]%}%2~   kafeitu
# 时间、耗时
# 设置提示符前缀
# git 提示显示在后面 nicoulaj
# PROMPT="%{$fg[$NCOLOR]%}%B%n%b%{$reset_color%}:%{$fg[cyan]%}%B%c/%b%{$reset_color%} $(git_prompt_info)%(!.#.$)"
# RPROMPT='[%*]'

# Color shortcuts
RED=$fg[red]
YELLOW=$fg[yellow]
GREEN=$fg[green]
WHITE=$fg[white]
CYAN=$fg[cyan]
BLUE=$fg[blue]

if [ $UID -eq 0 ]; then NCOLOR="white" PP="#"; else NCOLOR="green" PP="$"; fi # root

# 设置 Git 提示符
ZSH_THEME_GIT_PROMPT_PREFIX="%{%B$BLUE%} git(%{$RED%}"
ZSH_THEME_GIT_PROMPT_SUFFIX=" %b%f"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$BLUE%}) %{$YELLOW%}"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$BLUE%})"

CURPATH="%{$CYAN%}%~%b%f"
CURPATH_SHORT2="%{$CYAN%}%2~%b%f"
CURPATH_SHORT="%{$CYAN%}%c%b%f"
PROMPT="%n@%m:%B%(?:%{$GREEN%}:%{$RED%})$CURPATH" # 根据上一个命令的退出状态显示不同的提示符。成功则显示后面的内容;失败则。
PROMPT+='$(git_prompt_info)'
PROMPT+="%# "

DATE="`date "+%Y-%m-%d"`"
TIME="%F{red}%D{%L:%M}%D{%p}%b%f"
HISTORY="%{%F{gray}%}%!%{L%f%k%b%}%b%f"
# RPROMPT="%{$YELLOW_BOLD%}⚡%b%f"
# RPROMPT+=" $DATE"
RPROMPT+=" $TIME"
RPROMPT+=" $HISTORY"
